import request from "@/utils/request"

//登录
export function login ({ account, password }) {
    return request({
      url: '/user/login',
      method:'POST',
      params: {
        account: account,
        password: password
      }
    })
  }

  export function updateUser(userData) {
    return request({
      url: '/user/update',
      method: 'PUT',
      data: userData
    })
  }